package cn.calm.xhtml.entity;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "namespace", namespace = "http://www.calm.cn/extras/tag")
public class Namespace {
	@XmlAttribute
	private String uri;
	@XmlElementRef(name = "tag")
	private List<Tag> tags;
	@XmlElement(name = "desc", namespace = "http://www.calm.cn/extras/tag")
	private String desc;

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public List<Tag> getTags() {
		return tags;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}

	@Override
	public String toString() {
		return "Namespace [uri=" + uri + ", tags=" + tags + ", desc=" + desc
				+ "]";
	}

}
